package com.xbongbong.paas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;

/**
 * 流程审批人为空处理类型
 *
 * @author hongxiao
 * @date: 2019-10-31 12:10
 * @since
 * @version
 */
public enum ProcessEmptyApproverTypeEnum {

    /**
     * 审批人为空处理类型
     */
    ADMIN_TRANSFER(1, "enum.processEmptyApproverType.memo.admin_transfer"),
    AUTO_PAAS(2, "enum.processEmptyApproverType.memo.auto_paas"),
    AUTO_REJECT(3, "enum.processEmptyApproverType.memo.auto_reject");

    private Integer value;

    private String memo;

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getMemo() {
        return I18nMessageUtil.getMessage(memo);
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    ProcessEmptyApproverTypeEnum(Integer value, String memo){
        this.value = value;
        this.memo = memo;
    }
}
